package com.it001.controller;

import com.it001.entity.User;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 程序员恰恰
 * @date 2023-07-31 15:18
 */
@RestController
@RequestMapping("/usr")
public class UserController {
    @PostMapping("/login")
    private String addUser(@RequestBody User user) {
        System.out.println(user);
        return "ok";
    }
}
